package com.jxgyl.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * @program: middleplatform
 * @description: 启动类
 * @author: Wanglipeng
 * @create: 2022-01-20 15:02
 **/
/**
 *  @EnableFeignClients(basePackages = "com.jxgyl"),会把jar包里的带@OPenFeign的类注册为bean，不写不会自动注册
 */
@SpringBootApplication
@EnableFeignClients(basePackages = "com.jxgyl")
@EnableAsync
public class SpringbootApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootApplication.class,args);
    }
}
